package tunafish2k.rpgex.registries;

import net.fabricmc.fabric.api.client.rendering.v1.EntityModelLayerRegistry;
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;
import net.minecraft.client.render.entity.model.EntityModelLayer;
import net.minecraft.util.Identifier;
import tunafish2k.rpgex.RpgEX;
import tunafish2k.rpgex.renderers.StoneDartProjectileModel;
import tunafish2k.rpgex.renderers.StoneDartProjectileRenderer;

public class RendererRegistry {
    public static final EntityModelLayer MODEL_STONE_DART_LAYER = new EntityModelLayer(
            Identifier.of(RpgEX.MOD_ID, "stone_dart"), "main");

    public static void registerAll() {
        EntityRendererRegistry.register(EntityRegistry.STONE_DART, StoneDartProjectileRenderer::new);
        EntityModelLayerRegistry.registerModelLayer(MODEL_STONE_DART_LAYER, StoneDartProjectileModel::getTexturedModelData);
    }
}
